﻿<%@ Page Language="C#" MasterPageFile="~/ProductManager/ProductManage.Master" AutoEventWireup="true" CodeFile="TypePropertyManage.aspx.cs" Inherits="GoShopping.Web.ProductManager.TypePropertyManage" Title="无标题页" %>
<%@ Register assembly="ExtensionGridView" namespace="ExtensionControls" tagprefix="cc1" %>
<%@ Register assembly="GoShopping.Components" namespace="BaseText" tagprefix="cc2" %>
<%@ MasterType VirtualPath="ProductManage.Master" %> 
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<script type="text/javascript">
function GetData(value)
{
    alert(value);
    if(value)
    {
        var extGV=document.getElementById("extGVTP");
    }
}
</script>
    <table class="style1" style="width: 100%" cellpadding="0" cellspacing="0">
        <tr>
            <td style="width: 400px" class="style3">
                <asp:Label ID="Label10" runat="server" Text="属性中文名"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;
                <cc2:ZLTextBox ID="zlTxtChName" runat="server" InputType="varchars"></cc2:ZLTextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="zlTxtChName" ErrorMessage="RequiredFieldValidator">不能为空!</asp:RequiredFieldValidator>
            </td>
            <td style="width: 200px">
                <input id="hidField" type="hidden" runat="server"/>
            </td>
        </tr>
        <tr>
            <td style="width: 400px" class="style3">
                <asp:Label ID="Label11" runat="server" Text="列的类型"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:DropDownList ID="ddlColumnType" runat="server" Height="22px" Width="115px">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                    ControlToValidate="ddlColumnType" ErrorMessage="RequiredFieldValidator" 
                    InitialValue="--请选择--">请选择一个类型</asp:RequiredFieldValidator>
            </td>
            <td style="width: 200px">
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 400px" class="style3">
                <asp:Label ID="Label12" runat="server" Text="选择的类型值"></asp:Label>
&nbsp;<cc2:ZLTextBox ID="txtSelectTypeValue" runat="server">
                </cc2:ZLTextBox>
            </td>
            <td style="width: 200px">
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 400px" class="style3">
                <asp:Label ID="Label13" runat="server" Text="所属类型"></asp:Label>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                <asp:DropDownList ID="ddlType2" runat="server" Height="21px" 
                    Width="115px">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                    ControlToValidate="ddlType2" ErrorMessage="RequiredFieldValidator" 
                    InitialValue="-1">请选择一个分类</asp:RequiredFieldValidator>
            </td>
            <td style="width: 200px">
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 400px" class="style3">
                <asp:Button ID="btnAdd" runat="server" Text="添加" onclick="btnAdd_Click" />
                <asp:Button ID="btnClear" runat="server" onclick="btnClear_Click" Text="清空" 
                    CausesValidation="False" />
            </td>
            <td style="width: 200px">
                &nbsp;</td>
        </tr>
    </table>
    <table class="style1" cellpadding="0" cellspacing="0" >
        <tr>
            <td>
                <asp:Label ID="Label2" runat="server" Text="请选择类型名:"></asp:Label>
                <asp:DropDownList ID="ddlType" runat="server" Height="22px" Width="100px" 
                    AutoPostBack="True" onselectedindexchanged="ddlType_SelectedIndexChanged">
                </asp:DropDownList>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                <asp:GridView ID="extGVTP" runat="server" AutoGenerateColumns="False" 
                    onrowcommand="extGVTP_RowCommand" RecordCount="-1" 
                    EmptyDataText="该类型没有属性值!" Width="400px" AllowPaging="True" 
                    onpageindexchanging="extGVTP_PageIndexChanging">
                     <Columns>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:CheckBox ID="cbAll" runat="server" 
                                    oncheckedchanged="cbAll_CheckedChanged" AutoPostBack="true" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:CheckBox ID="cbSingle" runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField Visible="False">
                            <HeaderTemplate>
                                <asp:Label ID="Label3" runat="server" Text="操作"></asp:Label>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Button ID="btnEdit" runat="server" CommandName="TPEdit"  CommandArgument='Eval("ProdyctTypeID")' Text="操作" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="属性中文名">
                            <ItemTemplate>
                                <asp:Label ID="Label7" runat="server" Text='<%#Eval("PropertyName")%>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="列的类型">
                            <ItemTemplate>
                                <asp:Label ID="Label8" runat="server" Text='<%#Eval("ValueType")%>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="选择的类型值">
                            <ItemTemplate>
                                <asp:Label ID="Label9" runat="server" Text='<%#Eval("SelectTypeValue")%>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
<%--                <cc1:ExtensionGridView ID="extGVTP" runat="server" AutoGenerateColumns="False" 
                    onrowcommand="extGVTP_RowCommand" PagerText="当前第{0}页,共{1}页{2}条记录" 
                    RecordCount="-1" 
                    EmptyDataText="该类型没有属性值!" Width="400px" AllowPaging="True" 
                    onpageindexchanging="extGVTP_PageIndexChanging">
                    <Columns>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:CheckBox ID="cbAll" runat="server" 
                                    oncheckedchanged="cbAll_CheckedChanged" AutoPostBack="true" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:CheckBox ID="cbSingle" runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField Visible="False">
                            <HeaderTemplate>
                                <asp:Label ID="Label3" runat="server" Text="操作"></asp:Label>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Button ID="btnEdit" runat="server" CommandName="TPEdit"  CommandArgument='Eval("ProdyctTypeID")' Text="操作" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="属性中文名">
                            <ItemTemplate>
                                <asp:Label ID="Label7" runat="server" Text='<%#Eval("PropertyName")%>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="列的类型">
                            <ItemTemplate>
                                <asp:Label ID="Label8" runat="server" Text='<%#Eval("ValueType")%>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="选择的类型值">
                            <ItemTemplate>
                                <asp:Label ID="Label9" runat="server" Text='<%#Eval("SelectTypeValue")%>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <HeaderStyle HorizontalAlign="Center" />
                </cc1:ExtensionGridView>--%>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                <asp:Button ID="btnDel" runat="server" Text="删除" onclick="btnDel_Click" 
                    CausesValidation="False" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    </ContentTemplate>
        </asp:UpdatePanel>
</asp:Content>
